class Discussion < ActiveRecord::Base
  validates :name, :presence => true
  has_many :posts

  acts_as_api

  api_accessible :public do |template|
    template.add :id
    template.add :name
	template.add :posts
  end
end
